package com.soccertgc.core.game.events 
{
	
	import com.soccertgc.core.game.Game;
	import com.soccertgc.core.game.GameCards;
	import com.soccertgc.core.game.GamePhase;
	
	public class GameResolveDiscardPhaseEvent extends GamePhaseEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _playerCards:GameCards;
		private var _opponentCards:GameCards;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		/**
		 * Creates a new GameResolvePhaseEvent 
		 * @param g Game that dispatch the event
		 * @param gTurn Data and list of the effectes caused by the turn resolution
		 */		
		public function GameResolveDiscardPhaseEvent(g:Game, playerCards:GameCards, opponentCards:GameCards)
		{
			super(GameEvent.EVENT_GAME_RESOLVE_DISCARD_PHASE, g, GamePhase.RESOLVE_DISCARD);
			// Init
			_playerCards = playerCards;
			_opponentCards = opponentCards;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get playerCards():Object
		{
			return _playerCards;
		}
		
		public function get opponentCards():Object
		{
			return _opponentCards;
		}

	}
}